package com.sljy.hzk.entity.ui;

import android.support.annotation.IntDef;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * Created  on 2018/6/27 0027
 * @author 唐开阔
 * @describe 首页任务
 */
public class MainMoudleEntity {
    //1：我的任务 2：考试培训 3：危害检测
    public static final int MOUDLE_TASK = 1;
    public static final int MOUDLE_EXAM = 2;
    public static final int MOUDLE_TESTING= 3;
    @IntDef({MOUDLE_TASK, MOUDLE_EXAM, MOUDLE_TESTING})
    @Target(ElementType.PARAMETER)
    @Retention(RetentionPolicy.RUNTIME)
    public @interface MoudleType { }
    private int tag;
    public String name;
    public int  res;
    public int  noticeNum;

    public MainMoudleEntity(@MoudleType int tag,String name, int res, int noticeNum) {
        this.tag = tag;
        this.name = name;
        this.res = res;
        this.noticeNum = noticeNum;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getRes() {
        return res;
    }

    public void setRes(int res) {
        this.res = res;
    }

    public int getNoticeNum() {
        return noticeNum;
    }

    public void setNoticeNum(int noticeNum) {
        this.noticeNum = noticeNum;
    }

    public int getTag() {
        return tag;
    }

    public void setTag(int tag) {
        this.tag = tag;
    }
}
